package com.qingpeng.pay.api;


import com.qingpeng.pay.beans.CodeBean;
import com.qingpeng.pay.beans.CodeListBean;
import com.qingpeng.pay.beans.KefuBean;
import com.qingpeng.pay.beans.LoginBean;
import com.qingpeng.pay.beans.MessageBean;
import com.qingpeng.pay.beans.MoneyBean;
import com.qingpeng.pay.beans.NoticeBean;
import com.qingpeng.pay.beans.NullBean;
import com.qingpeng.pay.beans.OrderBean;
import com.qingpeng.pay.beans.QRCodeListBean;
import com.qingpeng.pay.beans.QRCodeMoneyListBean;
import com.qingpeng.pay.beans.TeamBean;
import com.qingpeng.pay.beans.WithdrawBean;

import java.util.HashMap;
import java.util.Map;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;

public interface RedBag {

    @POST("app/Mycenter/getaccount")
    Call<MoneyBean> getaccount();//我的账户

    @FormUrlEncoded
    @POST("app/Mycenter/withdraw_check")
    Call<NullBean> withdrawCheck(@Field("money") String money);//提现校验

    @FormUrlEncoded
    @POST("app/Mycenter/withdraw")
    Call<NullBean> tx(@Field("money") String money, @Field("zf_pwd") int pwd);//提现


    @POST("app/Mycenter/getuserinfo")
    Call<LoginBean> userinfo();//个人信息

    @FormUrlEncoded
    @POST("app/login/login")
    Call<LoginBean> login(@Field("account") String id, @Field("password") String money);//登录

    @FormUrlEncoded
    @POST("app/Mycenter/real_name")
    Call<NullBean> realname(@FieldMap HashMap<String, String> maps);//实名认证

    @POST("app/user/start")
    Call<NullBean> start();//开启接单


    @POST("app/Orderjd/orderjd_list")
    Call<OrderBean> getorderlist();//接单列表

    @POST("app/Mycenter/withdraw_list")
    Call<WithdrawBean> getwithdrawlist();//提现列表

    @POST("app/Mycenter/recharge_list")
    Call<WithdrawBean> getrechargelist();//充值列表

    @FormUrlEncoded
    @POST("app/Mycenter/setpass")
    Call<NullBean> pay_pwd(@Field("pass") String pwd);//设置支付密码


    @POST("app/Mycenter/sendcode")
    Call<NullBean> sendzfcode();//获取支付验证码

    @FormUrlEncoded
    @POST("app/Mycenter/verification")
    Call<NullBean> vrifyzfcode(@Field("code") String s);//支付验证验证码

    @Multipart
    @POST("app/user/shangma")
    Call<NullBean> imageUpload(@PartMap() Map<String, RequestBody> maps);//上传图片

    @POST("app/Mycenter/logpasssendcode")
    Call<NullBean> sendlogincode();//获取登录密码验证码

    @FormUrlEncoded
    @POST("app/Mycenter/logpassverify")
    Call<NullBean> logincode(@Field("code") String s);//登录密码验证验证码

    @FormUrlEncoded
    @POST("app/Mycenter/setlogpass")
    Call<NullBean> setpwd(@Field("logpass") String pwd);//设置登录密码

    @POST("app/Mycenter/createcode")
    Call<NullBean> createcode();//生成推广码


    @FormUrlEncoded
    @POST("app/login/mobile")
    Call<LoginBean> mobilelogin(@FieldMap HashMap<String, String> maps);//邀请码注册

    @FormUrlEncoded
    @POST("app/login/sendcode")
    Call<NullBean> sendcode(@Field("mobile") String mobile);//手机号登 录验证码

    @FormUrlEncoded
    @POST("app/login/mobilelogin")
    Call<LoginBean> mobilelogin(@Field("mobile") String mobile, @Field("code") String code);//手机号登录

    @POST("app/Mycenter/agent_list")
    Call<TeamBean> agentlist();//下级代理

    @FormUrlEncoded
    @POST("app/Mycenter/issuecode")
    Call<NullBean> issuecode(@Field("issuenum") String issuenum, @Field("bind_id") String bind_id);//下发邀请码

    @FormUrlEncoded
    @POST("app/Mycenter/changepro")
    Call<NullBean> changepro(@Field("pronum") String issuenum, @Field("bind_id") String bind_id);//修改分润

    @FormUrlEncoded
    @POST("app/Mycenter/qrcode")
    Call<CodeBean> qrcodelist(@Field("type") String type, @Field("list") String list);//二维码列表

    @FormUrlEncoded
    @POST("app/Mycenter/qrcodedel")
    Call<NullBean> qrcodelete(@Field("id") String id);//二维码删除

    @FormUrlEncoded
    @POST("app/index/callback")
    Call<NullBean> postceshi(@FieldMap() Map<String, String> maps);

    @FormUrlEncoded
    @POST("app/orderym/kfnotifyurl")
    Call<NullBean> postceshi1(@FieldMap() Map<String, String> postmap);

    @POST("app/user/is_status")
    Call<ResponseBody> getmessage();//判断是否在线

    @POST("app/Zfnotice/index")
    Call<MessageBean> zfnotion();//获取通告

    @POST("app/Zfnotice/message")
    Call<MessageBean> Zfnotion();//获取消息

    @FormUrlEncoded
    @POST("app/Zfnotice/setifread")
    Call<NullBean> setifread(@Field("mas_id") String id);//已读消息

    @POST("app/Mycenter/codelist")
    Call<CodeListBean> codelist();//邀请码记录

    @POST("app/zfnotice/kefu")
    Call<KefuBean> kefu();//邀请码记录

    @FormUrlEncoded
    @POST("app/Mycenter/prosavelist")
    Call<NullBean> prosavelist(@Field("bind_id") String id);//修改分润

    @FormUrlEncoded
    @POST("app/Mycenter/acountlist")
    Call<WithdrawBean> acountlist(@Field("type") String id);//修改分润

    @POST("app/Zfnotice/getnotice")
    Call<NoticeBean> getnotice();//邀请码记录

    @FormUrlEncoded
    @POST("app/user/addscore")
    Call<NullBean> addscore(@Field("erweima_id") String id,@Field("score") String score);//设置额度


    @FormUrlEncoded
    @POST("app/user/erweima_info")
    Call<QRCodeListBean> erweima_info(@Field("erweima_id") String id);//二维码历史记录


    @POST("app/user/erweima_list")
    Call<QRCodeMoneyListBean> erweima_list();//二维码金额列表
}
